package com.csmp.service;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.bs.bean.Doc;

public abstract class AbstractDocService extends HibernateDaoSupport implements DocService {
	

	private static final long serialVersionUID = 1L;

	protected abstract List<Doc> findList(Doc searchbean,int first,int max);
	
	protected abstract Doc loadObj(Long id);
	
	protected abstract void delObj(Doc delObj);
	protected abstract void saveObj(Doc delObj);

	public List<Doc> find(Doc searchbean, int first, int max) {
		return findList(searchbean, first, max);
	}

	public Doc load(Long id) {
		return loadObj(id);
	}

	public void del(Doc delObj) {
      delObj(delObj);		
	}
	
	public void save(Doc delObj) {
	      saveObj(delObj);		
		}

}
